package flowlight.service;

import flowlight.dao.scennicPicMapper;
import flowlight.entity.scennicPic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("ScenicPicService")
public class ScenicPicService {

    @Resource(name = "scennicPicMapper")
    private scennicPicMapper picMapper;

    public int deleteByPrimaryKey(Integer scennicPicId) {
        return picMapper.deleteByPrimaryKey(scennicPicId);
    }

    public int insert(scennicPic record) {
        return picMapper.insert(record);
    }

    public int insertSelective(scennicPic record) {
        return picMapper.insertSelective(record);
    }

    public scennicPic selectByPrimaryKey(Integer scennicPicId) {
        return picMapper.selectByPrimaryKey(scennicPicId);
    }

    public int updateByPrimaryKeySelective(scennicPic record) {
        return picMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(scennicPic record) {
        return picMapper.updateByPrimaryKey(record);
    }

    public List<scennicPic> selectAllPic(Integer scennicId) {
        return picMapper.selectAllPic(scennicId);
    }
}
